home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-07-31 | 1.1 KB | 61 lines |
- .SUFFIXES: .c .o
-
-
- CC = cc
- OPT=-g -O
- ARCH=-arch m68k -arch i486
- CFLAGS=$(ARCH) $(OPT)
-
- # xanim_x11.c xanim_set.c Action.m
-
- MAIN=xanim
-
- CFILES = aux.c xsim.c $(MAIN).c xanim_act.c xanim_cmap.c xanim_iff.c xanim_gif.c \
- xanim_txt.c unpacker.c xanim_utils.c \
- xanim_set.c xanim_dl.c xanim_pfx.c xanim_rle.c \
- xanim_avi.c xanim_qt.c xanim_fli.c
-
- OFILES =$(CFILES:.c=.o)
-
- LIBS=-lNeXT_s
-
- libxanim.a lib: $(OFILES)
- # ar rc libxanim.a $(OFILES)
- # ranlib libxanim.a
- libtool -o libxanim.a $(OFILES)
-
- test:
- make MAIN=xanim_test anim
- anim +v -d2 venus.mov
-
- anim: $(OFILES)
- $(CC) $(CFLAGS) -o anim $(OFILES) $(LIBS)
-
- venus.anim:
- mkdir venus.anim
- for file in pic*.tiff; do \
- mv $$file `echo $$file | sed 's/pic0*\(.*\)/venus.anim\/venus\1/'`; \
- done
-
- .c.o:
- $(CC) $(CFLAGS) -c $*.c
-
- txtmerge:
- $(CC) $(CFLAGS) -o txtmerge txtmerge.c
-
- SOURCES=Makefile make.depend *.h $(CFILES) xanim_test.m xanim.readme xanim.revhist
-
- tar:
- tar cf - $(SOURCES) | gzip > xanim.tar.gz
-
- tarlist:
- @ls $(SOURCES) | sed 's|^\(.*\)$$|xanim/\1|'
-
- clean:
- rm -f *.o xanim_test libxanim.a pic*.tiff
-
- depend:
- $(CC) -MM $(MFILES) $(CFILES) > make.depend
-
- include make.depend
-